/*
 * @Author: 李家磊
 * @Date: 2022-03-15 16:46:53
 * @LastEditTime: 2022-03-30 08:21:23
 * @LastEditors: 李家磊
 * @Description:
 * @FilePath: /CURD/config/routes.ts
 */
export default [
  // {
  //   path: '/user',
  //   layout: false,
  //   routes: [
  //     {
  //       path: '/user',
  //       routes: [
  //         {
  //           name: 'login',
  //           path: '/user/login',
  //           component: './User/login',
  //         },
  //       ],
  //     },
  //   ],
  // },
  //{
  //  path: '/welcome',
  //  name: 'welcome',
  //  icon: 'smile',
  //  component: './Welcome',
  //},
  {
    name: '1',
    icon: 'smile',
    path: '/first',
    component: './first',
  },
  {
    name: '2',
    icon: 'smile',
    path: '/second',
    routes: [
      {
        path: '/second/second-1',
        name: '2-1',
        component: './second/second-1'
      },
      {
        path: '/second/second-2',
        name: '2-2',
        component: './second/second-2'
      }
    ]
  },
  {
    path: '/',
    redirect: '/first',
  },
  {
    component: './404',
  },
];
